package top.songxs.gmall.feign.user.fallback;

import lombok.extern.slf4j.Slf4j;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.common.result.ResultCodeEnum;
import top.songxs.gmall.feign.user.UserFeignClient;
import top.songxs.gmall.user.entity.UserAddress;

import java.util.List;
@Slf4j
public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public Result<List<UserAddress>> getUserAllAddress() {

        log.error("getUserAllAddress 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }
}
